Skip to contentSkip to conversation

Change in openvpn[master]: console_systemd: remove the timeout when using `systemd-ask-password`

Openvpn-devel flichtenheld (Code Review) 1 participant 3 messages Jan 14, 2025 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): gerrit.1736862200000.I2791d09ab698d89dc7e0183151f77b84024ad6d1@...2715...

#1 lore raw

Attention is currently required from: plaisthos.

Hello plaisthos,

I'd like you to do a code review.
Please visit

    http://gerrit.openvpn.net/c/openvpn/+/866?usp=email

to review the following change.

Change subject: console_systemd: remove the timeout when using systemd-ask-password
......................................................................

console_systemd: remove the timeout when using systemd-ask-password

Without this, the password request will expire after 90 seconds leaving no way to provide the password without OpenVPN asking for it again. Given that interactive use will wait for input without a timeout, it makes sense to have non-interactive usage also wait until the user is ready instead of forcing users to race against the timeout.

Change-Id I2791d09ab698d89dc7e0183151f77b84024ad6d1

---
M src/openvpn/console_systemd.c

1 file changed, 1 insertion(+), 0 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/66/866/1

src/openvpn/console_systemd.c +1 -0
index 858504d..91ebb35 100644
@@ -72,6 +72,7 @@
     }
 #endif
     argv_printf_cat(&argv, "--icon network-vpn");
+    argv_printf_cat(&argv, "--timeout=0");
     argv_printf_cat(&argv, "%s", prompt);
 
     if ((std_out = openvpn_popen(&argv, NULL)) < 0)

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/866?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I2791d09ab698d89dc7e0183151f77b84024ad6d1
Gerrit-Change-Number: 866
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-MessageType: newchange

#2 lore raw

[Openvpn-devel] [XS] Change in openvpn[master]: console_systemd: remove the timeout when using 'systemd-ask-password'

In reply to a message not in the archive

cron2 has uploaded a new patch set (#2) to the change originally created by flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/866?usp=email )

Change subject: console_systemd: remove the timeout when using 'systemd-ask-password'
......................................................................

console_systemd: remove the timeout when using 'systemd-ask-password'

Without this, the password request will expire after 90 seconds leaving no way to provide the password without OpenVPN asking for it again. Given that interactive use will wait for input without a timeout, it makes sense to have non-interactive usage also wait until the user is ready instead of forcing users to race against the timeout.

Change-Id I2791d09ab698d89dc7e0183151f77b84024ad6d1

Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg30336.html

---
M src/openvpn/console_systemd.c

1 file changed, 1 insertion(+), 0 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/66/866/2

src/openvpn/console_systemd.c +1 -0
index 858504d..91ebb35 100644
@@ -72,6 +72,7 @@
     }
 #endif
     argv_printf_cat(&argv, "--icon network-vpn");
+    argv_printf_cat(&argv, "--timeout=0");
     argv_printf_cat(&argv, "%s", prompt);
 
     if ((std_out = openvpn_popen(&argv, NULL)) < 0)

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/866?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I2791d09ab698d89dc7e0183151f77b84024ad6d1
Gerrit-Change-Number: 866
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: newpatchset

#3 lore raw

[Openvpn-devel] [XS] Change in openvpn[master]: console_systemd: remove the timeout when using 'systemd-ask-password'

In reply to a message not in the archive

cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/866?usp=email )

Change subject: console_systemd: remove the timeout when using 'systemd-ask-password'
......................................................................

console_systemd: remove the timeout when using 'systemd-ask-password'

Without this, the password request will expire after 90 seconds leaving no way to provide the password without OpenVPN asking for it again. Given that interactive use will wait for input without a timeout, it makes sense to have non-interactive usage also wait until the user is ready instead of forcing users to race against the timeout.

Change-Id I2791d09ab698d89dc7e0183151f77b84024ad6d1

Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg30336.html

---
M src/openvpn/console_systemd.c

1 file changed, 1 insertion(+), 0 deletions(-)
src/openvpn/console_systemd.c +1 -0
index 858504d..91ebb35 100644
@@ -72,6 +72,7 @@
     }
 #endif
     argv_printf_cat(&argv, "--icon network-vpn");
+    argv_printf_cat(&argv, "--timeout=0");
     argv_printf_cat(&argv, "%s", prompt);
 
     if ((std_out = openvpn_popen(&argv, NULL)) < 0)

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/866?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I2791d09ab698d89dc7e0183151f77b84024ad6d1
Gerrit-Change-Number: 866
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: merged